//
//  QDMetroCodeTableViewController.h
//  QDMetroClient
//
//  Created by YueWen on 2018/12/28.
//  Copyright © 2018 YueWen. All rights reserved.
//

#import "NWTableViewController.h"
#import "QDMetroHeaderErrorType.h"

NS_ASSUME_NONNULL_BEGIN

@class QDMetroCodeHeaderView;
@class QDPayTypeDefaultPickerView;

/// 乘车码主控制器
@interface QDMetroCodeTableViewController : NWTableViewController

/// 图片的url
@property (nonatomic, copy)NSArray <NSString *> *imageUrls;
/// 跳转的url
@property (nonatomic, copy)NSArray <NSString *> *webUrls;
/// 分享的titles
@property (nonatomic, copy)NSArray <NSString *> *shareTitles;
/// 是否是活动盒子
@property (nonatomic, copy)NSArray <NSNumber *> *isBoxs;
/// 活动盒子的key
@property (nonatomic, copy)NSArray <NSString *> *boxKeys;


/// 客服电话
@property (nonatomic, copy)NSString *servicePhone;

/// 正常显示二维码的headerView
@property (nonatomic, strong) QDMetroCodeHeaderView *codeHeaderView;
/// 支付方式选择器
@property (nonatomic, strong) QDPayTypeDefaultPickerView * paytypePickView;
/// 是否是地铁
@property (nonatomic, assign) BOOL isMetro;

/// 更新错误状态
- (void)updateTableHeaderViewWithErrorType:(QDMetroHeaderErrorType)type;

/// 设置当前的二维码管理者
- (void)setCurrentCodeManagerWithIsMetro:(BOOL)isMetro;

/// 设置当前的二维码管理者是否存在支付方式
- (void)setCodeManagerHasChannelTypes:(BOOL)hasChannelTypes;

@end

NS_ASSUME_NONNULL_END
